import request from "../utils/request"
import utils from "../utils/util.js"
export default {

	getPetPartyList(query) {
		const queryParmas = utils.addParamsToURL(query);
		return request.get(`/pet/party/list?${queryParmas}`);
	},

	addPetParty(data) {
		return request.post('/pet/party/addParty', data);
	},

	getPetPartyById(id) {
		return request.get(`/pet/party/${id}`)
	},
	delPetPartyById(id) {
		return request.request(`/pet/party/${id}`, 'DELETE')
	},
	addPetPartyApply(data) {
		return request.post(`/pet/partyApplyInfo/addPartyApplyInfo`, data)
	},

	/**
	 * 查询个人怕对申请
	 */
	getPetPartyByUserIdandPartyId(userid, partyid) {
		return request.get(`/pet/partyApplyInfo/list1?userId=${userid}&partyId=${partyid}`)
	}
}